package com.neu.flashmall.ms.vo;


import com.neu.common.utils.ListCloneUtil;
import lombok.Data;
import lombok.SneakyThrows;


import java.util.List;

@Data
public class SysMenuVo implements Cloneable{
    private List<SysMenuItemVo> data;

    @SneakyThrows
    @Override
    public Object clone() throws CloneNotSupportedException {
        SysMenuVo sysMenuVo = (SysMenuVo) super.clone();
        List<SysMenuItemVo> cloneOne = ListCloneUtil.clone(this.data,SysMenuItemVo.class);
        sysMenuVo.setData(cloneOne);
        return sysMenuVo;
    }
}
